{% load pagebase %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{% spaceless %}
<title>{% block title %}首页{% endblock %} - 工作台 | {% app_name %}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/static/styles/blog/admin/default.css" type="text/css" media="all" />
<link rel="icon" href="/static/images/favicon-ani.gif?v=2" type="image/gif" />
{% endspaceless %}
</head>
<body>
<div id="container">
	<div id="header">
		<div class="inner">			
			<h1>我的工作台</h1>
			<div id="user-bar">
				你好，{{ current_profile.user.realname }} <a href="{% url blog_home current_profile.slug %}" title="返回博客">返回博客</a> | <a href="{% url signout %}" title="登出">登出</a>
			</div>		
		</div>
	</div>
	<div id="main-menu">
		<div class="inner">
			<ul>
				<li>
					<a href="{% url blog_admin %}" {% ifequal current_menu 'home' %}class="current"{% endifequal %}><div>管理首页</div></a>
				</li>
				<li>
					<a href="{% url blog_admin_post_add %}" {% ifequal current_menu 'post_add' %}class="current"{% endifequal %}><div>撰写</div></a>
				</li>
				<li>
					<a href="#" {% ifequal current_menu 'post_add' %}class="list"{% endifequal %}><div>管理</div></a>
				</li>
				<li>
					<a href="#" {% ifequal current_menu 'post_add' %}class="theme"{% endifequal %}><div>外观</div></a>
				</li>
				<li>
					<a href="#" {% ifequal current_menu 'post_add' %}class="setting"{% endifequal %}><div>设置</div></a>
				</li>
				<li>
					<a href="#" {% ifequal current_menu 'post_add' %}class="plugin"{% endifequal %}><div>插件</div></a>
				</li>
			</ul>
		</div>
	</div>
	<div id="sub-menu">
		<div class="inner">
			{% block submenu %}{% endblock %}
		</div>
	</div>
	<div id="warp">	
		<div class="inner">	
		{% block main %}{% endblock %}
		</div>
	</div>
	<div class="clear"></div>
	<div id="footer">
		<div class="inner">	
		&copy; 2008 {% app_name %},Power by <a href="http://code.google.com/p/coder-blog/" target="_blank">Coderblogs</a> | <a href="http://www.dcarter.co.uk">design by dcarter</a>
		</div>
	</div>
	
</div>
</body>
{% spaceless %}
{{ "lib/jquery.js"|include_js }}
{{ "lib/common.js"|include_js }}
{{ "lib/tiny_mce/tiny_mce.js"|include_js }}
{{ "blog/admin/pagebase.js"|include_js }}
{% block scripts %}{% endblock %}
{% endspaceless %}
</html>